<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="templateadmin.xhtml">
        <ui:define name="content">
            <script type="text/javascript">
                function testResults (form) {
   var TestVar = form.elements["model:txtPrice"];
   var tax_id = parseFloat(TestVar.value);
   if(isNaN(tax_id)){
       alert ("You have input float");
       return false;
   }
   return true;

   }
            </script>
            <center>
                <h1>Management Package Tour </h1>
                <br/>
                <h:form id="model">
                    <b><a href="newtour.xhtml?pageID=1" style="color:red">Create A New Tour</a></b>

                    <table border="0" cellpadding="0" cellspacing="0" id="product-table">
                        <tr>
                            <th class="table-header-repeat line-left minwidth-1" width="10px"><a href="">View</a>	</th>
                            <th class="table-header-repeat line-left minwidth-1" width="100px"><a href="">Tour Name </a></th>


                            <th class="table-header-repeat line-left minwidth-1" width="150px"><a href="">From Date</a></th>
                            <th class="table-header-repeat line-left minwidth-1" width="150px"><a href="">End Date</a></th>
                            <th class="table-header-repeat line-left minwidth-1" width="150px"><a href="">Price</a></th>
                            <th class="table-header-repeat line-left minwidth-1" width="100px"><a href="">Image</a></th>

                        </tr>
                        <ui:repeat value="#{tourBean.lAllPackageTour}" var="ltour">
                            <tr>
                                <td style="font-weight: bold ; color: yellowgreen"><a href="detailpackagetour.xhtml?id=#{ltour.packageTourID}">Detail</a></td>
                                <td>#{ltour.packageTourName}</td>
                                <td>#{ltour.fdate}</td>
                                <td>#{ltour.edate}</td>
                                <td>#{ltour.price}</td>
                                <td><img alt=""  src="#{ltour.images}" width="150" height="150"></img></td>

                            </tr>                           
                        </ui:repeat>

                    </table>
                    Page : <ui:repeat value="#{tourBean.pageList}" var="page1">
                        <a href="managepackagetour.xhtml?pageID1=#{page1}">#{page1}</a>-
                    </ui:repeat>

                </h:form>
            </center>
        </ui:define>
    </ui:composition>
</html>


